﻿using static CyberU;
using static CyberU.UI;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using TMPro;
using UnityEngine.Serialization;

public class ConstrainedText : SimpleText
{
    public float minFontSize
    {
        set{ textComponent.fontSizeMin=value;}
    }

    public float maxFontSize
    {
        set{ textComponent.fontSizeMax=value;}
    }

    public void Awake()
    {
        base.Awake();
        // Delog($"{textComponent == null}");
        textComponent.enableAutoSizing = true;
        minFontSize = 2f;
        maxFontSize = 36f;
    }
}